package com.example.demo_01.service.impl;

import com.example.demo_01.mapper.DeptMapper;
import com.example.demo_01.service.DeptService;
import com.example.demo_01.util.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public ResultBean findAll() {
        List<Map> list=deptMapper.findAll();

        return ResultBean.getInstance().success().setData(list);
    }
}
